﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SimulationPTSystem.DAL
{
    /// <summary>
    /// 成员信息
    /// </summary>
    public class ChengYuanInfo : DALObjectBase
    {
        private string code;
        private string name;
        private string gender;
        private int age;
        private string organization;
        private int answerDeviceID;
        private int sensorDeviceID;

        /// <summary>
        /// 编号
        /// </summary>
        public string Code { get => code; set => SetProperty(ref code,value); }
        /// <summary>
        /// 姓名
        /// </summary>
        public string Name { get => name; set =>SetProperty(ref name,value); }
        /// <summary>
        /// 性别
        /// </summary>
        public string Gender { get => gender; set => SetProperty(ref gender,value); }
        /// <summary>
        /// 年龄
        /// </summary>
        public int Age { get => age; set => SetProperty(ref age,value); }
        /// <summary>
        /// 组织
        /// </summary>
        public string Organization { get => organization; set => SetProperty(ref organization,value); }
        /// <summary>
        /// 答题器设备ID
        /// </summary>
        public int AnswerDeviceID { get => answerDeviceID; set => SetProperty(ref answerDeviceID,value); }
        /// <summary>
        /// 传感器设备ID
        /// </summary>
        public int SensorDeviceID { get => sensorDeviceID; set => SetProperty(ref sensorDeviceID,value); }
        /// <summary>
        /// 成员训练记录集合
        /// </summary>
        public virtual ICollection<ChengYuanTrainingRec> ChengYuanTrainingRecs { get; set; }

        public virtual ICollection<TeamInfo> TeamInfos { get; set; }
    }
}
